
<table class="table">
<thead>
	<tr>
		<td class="col-sm-1">createDate</td>
		<td class="col-sm-1">voucherPrefix</td>
		<td class="col-sm-1">voucherPostfix</td>
		<td class="col-sm-1">salesGlId</td>
		<td class="col-sm-1">accountReceivableGlId</td>
		<td class="col-sm-1">narration</td>
	</tr>
</thead>
<tbody>
	<?php foreach($modelSalesJournal as $i=>$item): ?>
	<tr>
		<?php echo CHtml::activeHiddenField($item,"[$i]id"); ?>	
		<td><?php echo '<div class="input-group date">',CHtml::activeTextField($item,"[$i]createDate",array('class'=>'form-control')),'<span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span></div>'; ?></td>	
		<td><?php echo CHtml::activeTextField($item,"[$i]voucherPrefix",array('class'=>'form-control')); ?></td>	
		<td><?php echo CHtml::activeTextField($item,"[$i]voucherPostfix",array('class'=>'form-control')); ?></td>	
		<td><?php echo CHtml::dropDownList("[$i]salesGlId", $item->salesGlId, CHtml::listData(gl::model()->findAll(), 'id', 'title'),array('class'=>'form-control')); ?></td>	
		<td><?php echo CHtml::dropDownList("[$i]accountReceivableGlId", $item->accountReceivableGlId, CHtml::listData(gl::model()->findAll(), 'id', 'title'),array('class'=>'form-control')); ?></td>	
		<td><?php echo CHtml::activeTextField($item,"[$i]narration",array('class'=>'form-control')); ?></td>		
	</tr>
	<?php endforeach; ?>
<tbody>
</table>